/**
 * 路由器实例
 */
//导入模块
import { createMemoryHistory, createRouter } from 'vue-router'

//我们自己编写的实例
import DemoIndex from '../views/demo/DemoIndex.vue';
import EleTable from '../views/demo/EleTable.vue';


//路由数组
const routes = [
  { path: '/demo', component: DemoIndex },
  { path: '/demo1', component: EleTable },
]

//创建路由实例
const router = createRouter({
  history: createMemoryHistory(),
  routes,
})

export default router;
